package com.forum.Mapper;

import com.forum.Entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LikeMapper {
    List<Like> getLikesList(String userId);

    void addLike(Like like);

    void deleteLike(@Param("userId") String userId,@Param("targetId") String targetId);

    void deleteLikeByTargetId(String postId);
}
